package com.java.service;

import java.math.BigDecimal;

import com.java.entity.RaceCourse;
import com.java.entity.event.RaceCourseEvent;
import com.java.util.resp.BaseRespone;
import com.java.util.resp.TableRespone;

public interface RaceCourseService {

	BaseRespone saveCourse(RaceCourse course);

	BaseRespone updateCourse(RaceCourse course);

	BaseRespone delCourse(String courseId);

	TableRespone getRaceCourses(String userId, int page, int size);

	RaceCourseEvent getCourse(String courseId);
	
	
	BaseRespone saveApply(String userId, String courseId, String file);

	BaseRespone saveApplyFile(String applyId, String file);
	
	BaseRespone giveupApply(String applyId);
	
	BaseRespone passApply(String applyId);
	
	BaseRespone applyScore(String applyId, BigDecimal score);
	
	BaseRespone applyGuide(String applyId, String guideText, String applyGuideFile);

	BaseRespone applyDelete(String applyId);
	
	TableRespone getApplys(String userId, Integer status, int page, int size);

	TableRespone getTeacherApplys(String teacherId, Integer status, int page, int size);
	
	
}
